<template>
  <view>
    <preview-file
      :downFileItem="downFileItem"
      :fileUrl="downFileItem.fileSrc"
    ></preview-file>
  </view>
</template>

<script>
export default {
  data() {
    return {
      downFileItem: {},
      fileSrc: "",
    };
  },
  onLoad: function (options) {
    const eventChannel = this.getOpenerEventChannel();
    eventChannel.on("dataFun", ({data}) => {
      this.downFileItem =data
    });
  },
  onShow: function () {
  },
  methods: {},
};
</script>

<style>
</style>
